package com.example.demo.service.impl;

import com.example.demo.entity.SjShop;
import com.example.demo.entity.classify;
import com.example.demo.entity.lb;
import com.example.demo.mapper.SjShopMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (SjShop)表服务实现类
 *
 * @author makejava
 * @since 2021-07-02 22:27:45
 */
@Service("sjShopService")
public class SjShopServiceImpl{
    @Resource
    private SjShopMapper sjShopDao;

    /**
     * 通过ID查询单条数据
     *
     * @return 实例对象
     */
    public List<SjShop> ChaXun() {
        return sjShopDao.ChaXun();
    }
    //按id查询
    public SjShop queryId(Integer id){
        return  sjShopDao.queryId(id);
    }
    //按id查询  分类 查询商店信息
    public List<classify> classify(int id){
        return  sjShopDao.classify(id);
    }
    //推荐店铺 按 商店评分降序
     public  List<classify> recommended(){
        return  sjShopDao.recommended();
     }
    //商店详情界面  的轮播图片
    public List<lb>  lb(int id){
        return  sjShopDao.lb(id);
    }
}
